﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TechTalk.SpecFlow;
using FluentAssertions;
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Support;
using OpenQA.Selenium.Support.PageObjects;
using OpenQA.Selenium.Support.UI;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.Remote;
using System.Threading;


namespace DocProcessingWorkFlowScenarios
{
    [Binding]
    public class BBOSLogOffSteps
    {
        BBOS_LoginPage loginPage = new BBOS_LoginPage();
        BBOS_WelcomePage welcomePage = new BBOS_WelcomePage();

        [Given]
        public void Given_I_click_on_Menu_Item_of_MENUITEM(string menuitem)
        {
            //BrowserUtility.Current.FindElement(By.LinkText(menuitem)).Click();
            welcomePage.clickLogOff();            
        }

        [Then]
        public void Then_Log_In_page_is_displayed()
        {
            loginPage.LoginText();
            //Assert.IsTrue(BrowserUtility.Current.PageSource.Contains("LOG IN"));
            //BrowserUtility.Current.Close();
            //BrowserUtility.Current.Dispose();
        }
    }
}
